package ace.module.oauth2.server.api.enums;

import ace.cmp.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
* oauth2 客户端 授权的协议集合.
*
* @author Caspar
*/
@AllArgsConstructor
@Getter
public enum Oauth2RegisteredClientAuthorizationGrantTypesEnum implements BaseEnum<String> {
  AUTHORIZATION_CODE("authorization_code","授权码认证"),
  REFRESH_TOKEN("refresh_token","刷新token"),
  CLIENT_CREDENTIALS("client_credentials","客户端认证"),
  PASSWORD("password","密码认证"),
  REST("rest","rest访问认证"),
  EXTERNAL_USER("external_user","外部主动认证"),
  ;
  private final String code;
  private final String desc;
}